Skip to main content

colorNames

Type

function

Summary

Returns a list of the color names you can use in LiveCode.

Syntax

the colorNames
colorNames()

Description

Use the colorNames property to check whether a particular color name can be used to specify properties such as foregroundColor and backgroundColor.

You can use the color names with the foregroundColor, backgroundColor, focusColor, topColor, bottomColor, hiliteColor, borderColor, shadowColor, selectionHandleColor, accentColor, backdrop, brushColor, and penColor properties.

Examples

the colorNames
if field "Color" is not among the lines of the colorNames then beep

command: answer color

function: propertyNames, functionNames

glossary: property, LiveCode, return

operator: is a

property: hiliteColor, shadowColor, foregroundColor, linkHiliteColor, HTMLText, borderColor, penColor, focusColor, brushColor, properties, backdrop, bottomColor, backgroundColor, accentColor, topColor, linkColor, selectionHandleColor

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?